<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/bib.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/bib.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="bib_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00029"></a>00029 <span class="preprocessor">#ifndef _BIB__H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define _BIB__H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00035"></a><a class="code" href="bib_8h.html#ae6a62047baeb4943b7272d52fbe9d506">00035</a> <span class="preprocessor">#define LTAG 32</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="bib_8h.html#a28e6e12dc288a90ffe21b2149ff6a946">00037</a> <span class="preprocessor">#define LCOGN 256</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="bib_8h.html#a791dcc283b3088a35b73cc370a2c7dc6">00039</a> <span class="preprocessor">#define LNOME 256</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="bib_8h.html#ae8a0891bda70a8b005767d4abf867166">00041</a> <span class="preprocessor">#define LANNO 4</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a><a class="code" href="bib_8h.html#adf93f6874eec76c37068dfdf5d356ce9">00043</a> <span class="preprocessor">#define LSSTRING 64</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a><a class="code" href="bib_8h.html#a9dbede8174e19bee24e514e6b6d9ae5b">00045</a> <span class="preprocessor">#define LLSTRING 1024</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a><a class="code" href="bib_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">00047</a> <span class="preprocessor">#define TRUE 1</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a><a class="code" href="bib_8h.html#aa93f0eb578d23995850d61f7d61c55c1">00049</a> <span class="preprocessor">#define FALSE 0</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00052"></a><a class="code" href="bib_8h.html#a94a9355898094a43596f429ebd6c6313">00052</a> <span class="preprocessor">#define NCAMPI 9</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a><a class="code" href="bib_8h.html#a798796a74d9771ab70c2f72f48f9a856">00054</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="bib_8h.html#a798796a74d9771ab70c2f72f48f9a856">campo</a> {AUTORE,TITOLO, EDITORE, LUOGO_PUBBLICAZIONE, ANNO, COLLOCAZIONE, DESCRIZIONE_FISICA, NOTA, PRESTITO} <a class="code" href="bib_8h.html#af71d9d3d0f2e8db31b02ca34410ef246">campo_t</a>;
<a name="l00055"></a>00055 
<a name="l00057"></a><a class="code" href="structautore.html">00057</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structautore.html">autore</a> {
<a name="l00059"></a><a class="code" href="structautore.html#a36c8a5f6fb6fb0bcbfeb048b6ace7598">00059</a>   <span class="keywordtype">char</span> <a class="code" href="structautore.html#a36c8a5f6fb6fb0bcbfeb048b6ace7598">cognome</a>[<a class="code" href="bib_8h.html#a28e6e12dc288a90ffe21b2149ff6a946">LCOGN</a> +1];
<a name="l00061"></a><a class="code" href="structautore.html#a462d9b6df287f19833696f3b50384b9b">00061</a>   <span class="keywordtype">char</span> <a class="code" href="structautore.html#a462d9b6df287f19833696f3b50384b9b">nome</a> [<a class="code" href="bib_8h.html#a791dcc283b3088a35b73cc370a2c7dc6">LNOME</a> + 1];
<a name="l00063"></a><a class="code" href="structautore.html#a1ef38b1313b340ae6472862d08ab6682">00063</a>   <span class="keyword">struct </span><a class="code" href="structautore.html">autore</a> * <a class="code" href="structautore.html#a1ef38b1313b340ae6472862d08ab6682">next</a>; 
<a name="l00064"></a>00064 } <a class="code" href="bib_8h.html#af046ae8d3bf828d4ea0ee53e937a633f">autore_t</a>;
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 
<a name="l00068"></a><a class="code" href="structprestito.html">00068</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structprestito.html">prestito</a> {
<a name="l00070"></a><a class="code" href="structprestito.html#a2810dc6719559e387c47c8b9f06dafa6">00070</a>   <span class="keywordtype">short</span> <span class="keywordtype">int</span> <a class="code" href="structprestito.html#a2810dc6719559e387c47c8b9f06dafa6">disponibile</a>; 
<a name="l00072"></a><a class="code" href="structprestito.html#a27ce9931f8a6d50c8e42722eca9cb325">00072</a>   <span class="keyword">struct </span>tm <a class="code" href="structprestito.html#a27ce9931f8a6d50c8e42722eca9cb325">scadenza</a>;    
<a name="l00073"></a>00073 } <a class="code" href="bib_8h.html#a519a323186199a877a297febde8cc4d1">prestito_t</a>;
<a name="l00074"></a>00074 
<a name="l00076"></a><a class="code" href="structpubblicazione.html">00076</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpubblicazione.html">pubblicazione</a> {
<a name="l00078"></a><a class="code" href="structpubblicazione.html#a36b67891a21606252b5755e7d3dc64b3">00078</a>   <span class="keywordtype">char</span> <a class="code" href="structpubblicazione.html#a36b67891a21606252b5755e7d3dc64b3">editore</a>[<a class="code" href="bib_8h.html#adf93f6874eec76c37068dfdf5d356ce9">LSSTRING</a>+1];  
<a name="l00080"></a><a class="code" href="structpubblicazione.html#a2c03564c60296c70361739f300573edd">00080</a>   <span class="keywordtype">char</span> <a class="code" href="structpubblicazione.html#a2c03564c60296c70361739f300573edd">luogo</a>[<a class="code" href="bib_8h.html#adf93f6874eec76c37068dfdf5d356ce9">LSSTRING</a>+1];    
<a name="l00082"></a><a class="code" href="structpubblicazione.html#a99e5b4dc1ea28b771a3a252874350f68">00082</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structpubblicazione.html#a99e5b4dc1ea28b771a3a252874350f68">anno</a>;         
<a name="l00083"></a>00083 } <a class="code" href="bib_8h.html#a1afe3ee2a7230b33203c925e1592778c">pubblicazione_t</a>;
<a name="l00084"></a>00084 
<a name="l00086"></a><a class="code" href="structscheda.html">00086</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structscheda.html">scheda</a> {
<a name="l00088"></a><a class="code" href="structscheda.html#ac607cadabc9b74ca4f4e9a6fd7ae126f">00088</a>   <a class="code" href="structautore.html">autore_t</a>* <a class="code" href="structscheda.html#ac607cadabc9b74ca4f4e9a6fd7ae126f">autore</a>;         
<a name="l00090"></a><a class="code" href="structscheda.html#a724319bee26af032b620dd2f6e0c9a0b">00090</a>   <span class="keywordtype">char</span> <a class="code" href="structscheda.html#a724319bee26af032b620dd2f6e0c9a0b">titolo</a>[<a class="code" href="bib_8h.html#a9dbede8174e19bee24e514e6b6d9ae5b">LLSTRING</a> +1]; 
<a name="l00092"></a><a class="code" href="structscheda.html#a75c191e014448496afb0f1dcd690e279">00092</a>   <a class="code" href="structpubblicazione.html">pubblicazione_t</a> <a class="code" href="structscheda.html#a75c191e014448496afb0f1dcd690e279">pub</a>;      
<a name="l00094"></a><a class="code" href="structscheda.html#ac7fe94ef514573c623c695b5597190c4">00094</a>   <a class="code" href="structprestito.html">prestito_t</a> <a class="code" href="structscheda.html#ac7fe94ef514573c623c695b5597190c4">prestito</a>;      
<a name="l00096"></a><a class="code" href="structscheda.html#a88969ed00efdfa463967b2be64e8431b">00096</a>   <span class="keywordtype">char</span> <a class="code" href="structscheda.html#a88969ed00efdfa463967b2be64e8431b">nota</a>[<a class="code" href="bib_8h.html#a9dbede8174e19bee24e514e6b6d9ae5b">LLSTRING</a>+1];    
<a name="l00098"></a><a class="code" href="structscheda.html#a4d52097908ce95230d2086c645a7995d">00098</a>   <span class="keywordtype">char</span> <a class="code" href="structscheda.html#a4d52097908ce95230d2086c645a7995d">collocazione</a>[<a class="code" href="bib_8h.html#adf93f6874eec76c37068dfdf5d356ce9">LSSTRING</a>+1];  
<a name="l00100"></a><a class="code" href="structscheda.html#af67064d05c9029300f5fb41878da199e">00100</a>   <span class="keywordtype">char</span> <a class="code" href="structscheda.html#af67064d05c9029300f5fb41878da199e">descrizione_fisica</a>[<a class="code" href="bib_8h.html#adf93f6874eec76c37068dfdf5d356ce9">LSSTRING</a>+1];   
<a name="l00101"></a>00101 } <a class="code" href="bib_8h.html#a20e8400f11091455ae779864b085d5cd">scheda_t</a>;
<a name="l00102"></a>00102 
<a name="l00107"></a>00107 <a class="code" href="structscheda.html">scheda_t</a> * <a class="code" href="bib_8c.html#a012f0957a057de5eafe85b6d17c54307">new_scheda</a> (<span class="keywordtype">void</span>);
<a name="l00108"></a>00108 
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="bib_8c.html#ae40e14c56c207005f34e0bae2033dd90">free_scheda</a> (<a class="code" href="structscheda.html">scheda_t</a> ** ps);
<a name="l00114"></a>00114 
<a name="l00122"></a>00122 <span class="keywordtype">int</span> <a class="code" href="bib_8c.html#a9ace31c838db29996e47a878bbb2ba26">is_equal_scheda</a> (<a class="code" href="structscheda.html">scheda_t</a> * s1, <a class="code" href="structscheda.html">scheda_t</a> * s2);
<a name="l00123"></a>00123 
<a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="bib_8c.html#a2fa69248d64531b30506c689cf92a6a3">print_scheda</a> (FILE* f, <a class="code" href="structscheda.html">scheda_t</a> * s);
<a name="l00130"></a>00130 
<a name="l00139"></a>00139 <a class="code" href="structscheda.html">scheda_t</a> * <a class="code" href="bib_8c.html#a370c6738dfd0494beae8f0c4d4bab045">record_to_scheda</a> (<span class="keywordtype">char</span>* r, <span class="keywordtype">int</span> l);
<a name="l00140"></a>00140 
<a name="l00147"></a>00147 <span class="keywordtype">char</span> * <a class="code" href="bib_8c.html#a510b7ebd374c02e1997b65350611135a">scheda_to_record</a>(<a class="code" href="structscheda.html">scheda_t</a>* s);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 
<a name="l00158"></a>00158 <span class="keywordtype">int</span> <a class="code" href="bib_8c.html#aeb2bac0603823ee1f0e22b8f43728b1e">load_records</a>(FILE* fin, <a class="code" href="structscheda.html">scheda_t</a>** psarray[]);
<a name="l00159"></a>00159 
<a name="l00167"></a>00167 <span class="keywordtype">int</span> <a class="code" href="bib_8c.html#ab3eb1b5de833e2fff25a542111a76ad0">store_records</a>(FILE* fout, <a class="code" href="structscheda.html">scheda_t</a>* sarray[], <span class="keywordtype">int</span> n);
<a name="l00168"></a>00168 
<a name="l00184"></a>00184 <span class="keywordtype">int</span> <a class="code" href="bib_8c.html#a2b27ee678dc66a1c32d3af3679728996">sort_schede</a>(<a class="code" href="structscheda.html">scheda_t</a>* sarray[], <span class="keywordtype">int</span> n, <a class="code" href="bib_8h.html#af71d9d3d0f2e8db31b02ca34410ef246">campo_t</a> c);
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
